import Layout from '@/layout'

const settingRouter = {
  path: '/setting',
  component: Layout,
  redirect: '/setting',
  name: 'setting',
  meta: {
    title: '基础设置',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/settingInfo',
      component: () => import('@/views/setting/dict'),
      name: '字典设置',
      meta: { icon: 'edit', title: '字典设置', roles: ['clinic:info'] }
    },
    {
      path: 'fee',
      component: () => import('@/views/setting/fee'),
      name: '费用设置',
      meta: { icon: 'money', title: '费用设置', roles: ['myClinic'] }
    }]
}

export default settingRouter
